<?php
/*
+--------------------------------------------------------------------------
|   JSPHP [#RELEASE_VERSION#]
|   ========================================
|   by JSPHP Software
|   © 2017 - 2018 JSPHP. All Rights Reserved
|   http://my.oschina.net/jack088
|   ========================================
|   Support: yjwang088@163.com
|
+---------------------------------------------------------------------------
*/

if (! defined('JS_PATH'))
{
	define('JS_PATH', dirname(__FILE__) . '/');
}

require_once (JS_PATH . 'init.php');

if (defined('G_GZIP_COMPRESS') AND G_GZIP_COMPRESS === TRUE)
{
	if (@ini_get('zlib.output_compression') == FALSE)
	{
		if (extension_loaded('zlib'))
		{
			if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) AND strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== FALSE)
			{
				ob_start('ob_gzhandler');
			}
		}
	}
}

require_once (JS_PATH . 'JS_APP.inc.php');
require_once (JS_PATH . 'js_controller.inc.php');
require_once (JS_PATH . 'js_model.inc.php');

JS_APP::run();